import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'
import Index from '../views/Index.vue'
import Main from '../components/Main.vue'
import Register from '../components/register/Register.vue'
import Charge from '../components/register/Charge.vue'
import BackNumber from '../components/register/BackNumber.vue'
import HomePage from '../components/outpatient01/HomePage.vue'
import ExamineApplication from '../components/outpatient01/ExamineApplication.vue'
import OutDiagnosis from '../components/outpatient01/OutDiagnosis.vue'
import PatientPrescription from '../components/outpatient02/PatientPrescription.vue'
import TreatmentOver from '../components/outpatient02/TreatmentOver.vue'
import ExpenseSearch from '../components/outpatient02/ExpenseSearch.vue'
import CheckRegist from '../components/technology/CheckRegist.vue'
import ResultEntry from '../components/technology/ResultEntry.vue'
import PersonalWorkload from '../components/technology/PersonalWorkload.vue'
import Dispensing from '../components/drugstore/Dispensing.vue'
import OutDrugs from '../components/drugstore/OutDrugs.vue'
import Catalog from '../components/drugstore/Catalog.vue'
import CostAccount from '../components/finance/CostAccount.vue'
import DailySettlement from '../components/finance/DailySettlement.vue'
import SubjectsWorkload from '../components/finance/SubjectsWorkload.vue'
import PatientPage from '../components/outpatient01/PatientPage.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/Login'
  },
  {
    path: '/Login',
    name:'登录页',
	component:Login,
  },
  {
  	path: '/Index',
  	name: 'Index',
  	component: Index,
	children:[
		{
			  path:'/Main',
			  name:'首页',
			  component:Main
		},
		{
			path:'/register',
			name:'挂号',
			component:Register
		},
		{
			path:'/charge',
			name:'收费',
			component:Charge
		},
		{
			path:'/backnumber',
			name:'退号',
			component:BackNumber
		},
		{
			path:'/homePage',
			name:'门诊病历首页',
			component:HomePage
		},
		{
			path:'/examineApplication',
			name:'检查申请',
			component:ExamineApplication
		},
		{
			path:'/outDiagnosis',
			name:'门诊确诊',
			component:OutDiagnosis
		},
		{
			path:'/patientPrescription',
			name:'成药处方',
			component:PatientPrescription
		},
		{
			path:'/treatmentOver',
			name:'诊毕',
			component:TreatmentOver
		},
		{
			path:'/expenseSearch',
			name:'患者费用明细查询',
			component:ExpenseSearch
		},
		{
			path:'/checkRegist',
			name:'检查检验登记',
			component:CheckRegist
		},
		{
			path:'/resultEntry',
			name:'检查检验结果录入',
			component:ResultEntry
		},
		{
			path:'/personalWorkload',
			name:'个人工作量统计',
			component:PersonalWorkload
		},
		{
			path:'/dispensing',
			name:'门诊发药',
			component:Dispensing
		},
		{
			path:'/outDrugs',
			name:'门诊退药',
			component:OutDrugs
		},
		{
			path:'/catalog',
			name:'药品目录管理',
			component:Catalog
		},
		{
			path:'/costAccount',
			name:'费用科目管理',
			component:CostAccount
		},
		{
			path:'/dailySettlement',
			name:'门诊日结核对',
			component:DailySettlement
		},
		{
			path:'/subjectsWorkload',
			name:'门诊科目工作量统计',
			component:SubjectsWorkload
		},
		{
					path:'/patientPage',
					name:'患者病情',
					component:PatientPage
		},

	],
  }
]

const router = new VueRouter({
  routes
})

export default router
